<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>学生查看简历评价</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../layui/css/layui.css">
    <link rel="stylesheet" href="../bs/bootstrap.min.css">
    <script src="/sybida/common/js/locahostadress.js" charset="utf-8"></script>

    <script src="/pdf/build/pdf.js" ></script>
<body>
<div class="container">
    <br>
    <table class="layui-table" style="margin-top: 10px;text-align: center" id="showAllInfo">
        <tr>
            <th colspan="6" style="text-align: center;font-weight: bolder;font-size: 30px"><h2>简历评价表</h2></th>
        </tr>
        <tr>
            <th style="font-size: 20px;text-align: center;font-weight: lighter">评价人姓名</th>
            <th style="font-size: 20px;text-align: center;font-weight: lighter">评价内容</th>
            <th style="font-size: 20px;text-align: center;font-weight: lighter">评价时间</th>
        </tr>
    </table>
    <iframe style="width: 100%;height: 800px;" id="ifreamq">

    </iframe>
</div>
<script src="../jquery/jquery-3.3.1.min.js"></script>
<script src="../common/js/locahostadress.js"></script>
<script src="/sybida/publicTool/js/dateutil.js"></script>
<script src="/sybida/bs/bootstrap.min.js"></script>

<script>


    var search=location.search
    var arr=search.split("?")
    var arr1=arr[1]
    var arr2=arr1.split("&")
    var qnyl=arr2[1]
    var vitaeId1=arr2[0]
    var vitaeId= vitaeId1.split("=")[1]
    var qny=qnyl.split("=")[1]


    $("#ifreamq").attr("src","../pdf/web/viewer.html?file="+Qnyurl+qny)
    var userid=getCookie("userid")
    showEvaluate()
    function showEvaluate() {

        $.getJSON({url:url + "/student/selectevaluatebyvitaeid", data:"vitaeId="+vitaeId ,
            beforeSend: function(request) {
                request.setRequestHeader("token", userid);
            },
            success:function (data) {
                if(data== -1000){
                    location.href=logindexurl
                }else{

                    let html = ''
                    var list = data.data
                    for (let i = 0; i < list.length; i++) {
                        var date = Date.parse(list[i].vitaeEvaluateAlterTime)
                        date = new Date(date);
                        html += `<tr class="warning">]
                                    <td>${list[i].teachName}</td>
                                    <td style="height: 200px;">${list[i].vitaeEvaluateComment}</td>
                                    <td>${date.pattern("yyyy-MM-dd HH:mm:ss")}</td>
                                  </tr>`
                    }
                $("#showAllInfo").append(html)
                }


        }})
    }
</script>




</body>
</html>